package com.rslai.base.tool.servertest.config;

import com.rslai.base.tool.servertest.annotation.Property;
import com.rslai.base.tool.servertest.command.StepCommand;
import com.rslai.base.tool.servertest.command.WaitUntilStepCommand;

public class WaitUntilStepConfig extends CompositeStepConfig {

    @Property(required = true)
    private String timeout;

    @Property
    private String desc;

    public StepCommand createCommand() {
        return new WaitUntilStepCommand(this.desc, Long.valueOf(this.timeout), createChildren());
    }
}
